﻿<%@ Page Language="C#" %>

<%
    if (Request.Cookies["userID"] != null)
    {
        if (Request.Cookies["groupID"] != null)
        {
            Response.Cookies["groupID"].Expires = DateTime.Now.AddDays(-1);
            Response.Cookies["groupName"].Expires = DateTime.Now.AddDays(-1);
        }

        if (Request.Cookies["passwordProtectionStatus"] != null)
        {
            Response.Cookies["passwordProtectionStatus"].Expires = DateTime.Now.AddDays(-1);
        }
        
        Response.Cookies["userID"].Expires = DateTime.Now.AddDays(-1);
        Response.Cookies["username"].Expires = DateTime.Now.AddDays(-1);
        
        Response.Redirect("login.aspx");
    } 
%>